//
//  FRPCell.m
//  FunctionalReactivePixels
//
//  Created by Linyongzhi on 2017/4/6.
//
//

#import "FRPCell.h"
#import "FRPPhotoModel.h"

@interface FRPCell ()
@end

@implementation FRPCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    RAC(self.imageView, image) = [[RACObserve(self, photoModel.thumbnailData) ignore:nil] map:^(NSData *data) {
        return [UIImage imageWithData:data];
    }];
}

@end
